package com.ruoyi.passenger.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 个人用户退款列-新增对象 tb_passenger_refund_flow
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
public class TbPassengerRefundFlow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @Excel(name = "主键ID")
    private Long id;

    /** 逸品充值流水号 */
    @Excel(name = "逸品充值流水号")
    private String yipinRechargeFlowNo;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phoneNumber;

    /** 用户类型 */
    @Excel(name = "用户类型")
    private String userType;

    /** 充值时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "充值时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rechargeTime;

    /** 充值金额-本金（元） */
    @Excel(name = "充值金额-本金", readConverterExp = "元=")
    private BigDecimal principalAmount;

    /** 赠送金额（元） */
    @Excel(name = "赠送金额", readConverterExp = "元=")
    private BigDecimal giftAmount;

    /** 第三方流水号 */
    @Excel(name = "第三方流水号")
    private String thirdPartyFlowNo;

    /** 充值渠道 */
    @Excel(name = "充值渠道")
    private Long rechargeChannel;

    /** 行程订单号 */
    @Excel(name = "行程订单号")
    private String tripOrderNo;

    /** 退款原因 */
    @Excel(name = "退款原因")
    private String refundReason;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setYipinRechargeFlowNo(String yipinRechargeFlowNo) 
    {
        this.yipinRechargeFlowNo = yipinRechargeFlowNo;
    }

    public String getYipinRechargeFlowNo() 
    {
        return yipinRechargeFlowNo;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }

    public void setUserType(String userType) 
    {
        this.userType = userType;
    }

    public String getUserType() 
    {
        return userType;
    }

    public void setRechargeTime(Date rechargeTime) 
    {
        this.rechargeTime = rechargeTime;
    }

    public Date getRechargeTime() 
    {
        return rechargeTime;
    }

    public void setPrincipalAmount(BigDecimal principalAmount) 
    {
        this.principalAmount = principalAmount;
    }

    public BigDecimal getPrincipalAmount() 
    {
        return principalAmount;
    }

    public void setGiftAmount(BigDecimal giftAmount) 
    {
        this.giftAmount = giftAmount;
    }

    public BigDecimal getGiftAmount() 
    {
        return giftAmount;
    }

    public void setThirdPartyFlowNo(String thirdPartyFlowNo) 
    {
        this.thirdPartyFlowNo = thirdPartyFlowNo;
    }

    public String getThirdPartyFlowNo() 
    {
        return thirdPartyFlowNo;
    }

    public void setRechargeChannel(Long rechargeChannel) 
    {
        this.rechargeChannel = rechargeChannel;
    }

    public Long getRechargeChannel() 
    {
        return rechargeChannel;
    }

    public void setTripOrderNo(String tripOrderNo) 
    {
        this.tripOrderNo = tripOrderNo;
    }

    public String getTripOrderNo() 
    {
        return tripOrderNo;
    }

    public void setRefundReason(String refundReason) 
    {
        this.refundReason = refundReason;
    }

    public String getRefundReason() 
    {
        return refundReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("yipinRechargeFlowNo", getYipinRechargeFlowNo())
            .append("userName", getUserName())
            .append("phoneNumber", getPhoneNumber())
            .append("userType", getUserType())
            .append("rechargeTime", getRechargeTime())
            .append("principalAmount", getPrincipalAmount())
            .append("giftAmount", getGiftAmount())
            .append("thirdPartyFlowNo", getThirdPartyFlowNo())
            .append("rechargeChannel", getRechargeChannel())
            .append("tripOrderNo", getTripOrderNo())
            .append("refundReason", getRefundReason())
            .toString();
    }
}
